package com.bestillet.defaultmultishop;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class MixDialog extends Dialog {
	private TextView message;
	private Button ok;

	public MixDialog(Context context, String s) {
		super(context);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.dialog_mix);
		
		message = (TextView) findViewById(R.id.lblAddError);
		message.setText(context.getResources().getString(R.string.dialog_add_error_1) + " " + s + " " + context.getResources().getString(R.string.dialog_add_error_2));
		
		ok = (Button) findViewById(R.id.btnOk);
		ok.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				dismiss();
			}
		});
	}
}